package com.shycloud.mido.homework.controller;


import com.shycloud.mido.common.core.util.R;
import com.shycloud.mido.homework.api.vo.WeekBestHomeworkVO;
import com.shycloud.mido.homework.mapper.WeekBestHomeworkMapper;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 周报高光时刻 前端控制器
 * </p>
 *
 * @author baiqiang
 * @since 2021-06-15
 */
@RestController
@RequestMapping("/homework/week-best-homework")
@AllArgsConstructor
public class WeekBestHomeworkController {

	/** 高光时刻业务 mapper */
	private final WeekBestHomeworkMapper weekBestHomeworkMapper;

	@ApiOperation("获取高光时刻")
	@GetMapping("getBestHomework")
	public R<List<WeekBestHomeworkVO>> getBestHomework(String memberId, String weekId) {
		return new R(weekBestHomeworkMapper.getBestHomework(memberId, weekId));
	}

}
